package com.fz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fz.entity.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fz.vo.ResultVo;

import java.util.List;

/**
 * <p>
 * 存储优惠券信息 服务类
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
public interface CouponService extends IService<Coupon> {

    public IPage<Coupon> getCouponsByUid(Long userId, Integer pageNo, Integer pageSize);

    Boolean giveCouponToUser(Long userId, Long amount);

    public List<Coupon> getCouponsByUid(Long userId);

}
